package com.mobartisan.vehiclenetstore.network.action.model;

import com.mobartisan.vehiclenetstore.bean.UploadBeen;
import com.mobartisan.vehiclenetstore.network.action.ECarAction;
import com.mobartisan.vehiclenetstore.network.service.UserApiService;

import io.reactivex.Observer;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;
import okhttp3.ResponseBody;

/**
 * Created by L on 2017/6/27.
 */

public class ECarActionmpl implements ECarAction {

    @Override
    public void upload(long user_id, String client_id, Observer<ResponseBody> observer) {
//        UploadBeen uploadBeen = new UploadBeen();
//        uploadBeen.setCustomerId(user_id);
//        uploadBeen.setClientId(client_id);
        UserApiService.upload(user_id,client_id).subscribeOn(Schedulers.newThread()).observeOn(AndroidSchedulers.mainThread()).subscribe(observer);
    }
}
